<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vuejs测试</title>
  <script src="vue/vue.js"></script>

</head>
<body>
    <div id="app">
        {{msg}}
    </div>
<script type="text/javascript">
    let app = new Vue({
        el:"#app",
        data:{
            msg:""
        },
        //钩子函数
        created(){
            this.msg="hello vue.created";
            console.log(this);
        }
    });
</script>
</body>
</html>